﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RAP.Framework.Libary.Utils
{
  public static partial class Extensions
  {
    public static HashSet<T> CopyTo<T>( this HashSet<T> srcSet, HashSet<T> destSet )
    {
      if ( srcSet?.Count > 0 && destSet != null )
      {
        foreach ( var item in srcSet )
        {
          destSet.Add( item );
        }
      }
      return destSet;
    }
  }
}
